/**
 * Created by sicongdu on 18-4-16.
 */
var exam = require("./mark_model").exam
var group = require("./mark_model").group


group.create({
  exam_id: "5b2c7035c3d90b07070ccb1a", //id2
  name: "zuming1",
  members: "2019321342:张1三/201342321:李四/20193255342:王五/201342321:赵六",
  is_marked: "0",
}, (error, doc) => {
  if (error) {
    console.log(error)
  } else {
    console.log({
      error_no: 0,
      error_msg: "ok",
      exam: doc
    })
  }
})

group.create({
  exam_id: "5b2c7035c3d90b07070ccb1a", //id2
  name: "zuming2",
  members: "2019321342:张2三/201342321:李四/20193255342:王五/201342321:赵六",
  is_marked: "0",
}, (error, doc) => {
  if (error) {
    console.log(error)
  } else {
    console.log({
      error_no: 0,
      error_msg: "ok",
      exam: doc
    })
  }
})

group.create({
  exam_id: "5b2c7035c3d90b07070ccb1a", //id2
  name: "zuming3",
  members: "2019321342:张3三/201342321:李四/20193255342:王五/201342321:赵六",
  is_marked: "0",
}, (error, doc) => {
  if (error) {
    console.log(error)
  } else {
    console.log({
      error_no: 0,
      error_msg: "ok",
      exam: doc
    })
  }
})

group.create({
  exam_id: "5b2c7035c3d90b07070ccb1a", //id2
  name: "zuming4",
  members: "2019321342:张4三/201342321:李四/20193255342:王五/201342321:赵六",
  is_marked: "0",
}, (error, doc) => {
  if (error) {
    console.log(error)
  } else {
    console.log({
      error_no: 0,
      error_msg: "ok",
      exam: doc
    })
  }
})

group.create({
  exam_id: "5b2c7035c3d90b07070ccb1a", //id2
  name: "zuming5",
  members: "2019321342:张5三/201342321:李四/20193255342:王五/201342321:赵六",
  is_marked: "0",
}, (error, doc) => {
  if (error) {
    console.log(error)
  } else {
    console.log({
      error_no: 0,
      error_msg: "ok",
      exam: doc
    })
  }
})

group.create({
  exam_id: "5b2c7035c3d90b07070ccb1a", //id2
  name: "zuming6",
  members: "2019321342:张6三/201342321:李四/20193255342:王五/201342321:赵六",
  is_marked: "0",
}, (error, doc) => {
  if (error) {
    console.log(error)
  } else {
    console.log({
      error_no: 0,
      error_msg: "ok",
      exam: doc
    })
  }
})

group.create({
  exam_id: "5b2c7035c3d90b07070ccb1a", //id2
  name: "zuming7",
  members: "2019321342:张7三/201342321:李四/20193255342:王五/201342321:赵六",
  is_marked: "0",
}, (error, doc) => {
  if (error) {
    console.log(error)
  } else {
    console.log({
      error_no: 0,
      error_msg: "ok",
      exam: doc
    })
  }
})

group.create({
  exam_id: "5b2c7035c3d90b07070ccb1a", //id2
  name: "zuming8",
  members: "2019321342:张8三/201342321:李四/20193255342:王五/201342321:赵六",
  is_marked: "0",
}, (error, doc) => {
  if (error) {
    console.log(error)
  } else {
    console.log({
      error_no: 0,
      error_msg: "ok",
      exam: doc
    })
  }
})

// exam.create({
//   name: "内部测试验收名称",
//   start_time: new Date("2018-1-1").toString(),
//   stop_time: new Date("2018-1-2").toString(),
//   address: "新科研楼",
//   teachers: "2019321342:张三/201342321:李四,20193255342:王五/201342321:赵六",
//   classes: "2018234401/2018932502,2018256401/20189342502",
//   status: "0", //0：未开始 1: 签到  2：打分 3：结束
// }, (error, doc) => {
//   if (error) {
//     console.log(error)
//   } else {
//     console.log({
//       error_no: 0,
//       error_msg: "ok",
//       exam: doc
//     })
//   }
// })
